<template>
  <div class="container">
    <div class="add-form">
      <h3>主体信息登记</h3>
      <el-form
        :model="addForm"
        :rules="$rules"
        label-width="200px"
        ref="addFormRef"
        status-icon
      >
        <template v-for="(value, key) in addForm">
          <el-form-item
            :key="key"
            :label="$language.local(key)"
            :prop="key"
          >
            <xy-input
              clearable
              v-model="addForm[key]"
            ></xy-input>
          </el-form-item>
        </template>
      </el-form>
      <span
        class="dialog-footer"
        slot="footer"
      >
        <el-button @click="addDialogVisible = false">
          {{
          $language.local("取消")
          }}
        </el-button>
        <el-button
          @click="add('addFormRef')"
          type="primary"
        >
          {{
          $language.local("确定")
          }}
        </el-button>
      </span>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      addForm: {
        customerName: "企业名称",
        customerManager: "所属代理商",
        customTaxIdcd: "统一社会信用代码",
        registereddate: "注册日期",
        registeredcapital: "注册资本",
        customLegalPerson: "法人姓名",

        IdNumber: "证件号码",
        customCollector: "联系人姓名",
        customCollectorPhone: "联系电话",
        customMail: "联系人邮箱",
        customerTelephone: "客户电话",

        areaName: "企业联系地址",
        BusinesslicenseImg: "营业执照图片",
        identitycardImg: "身份证图片（正面）",
        identitycardBackImg: "身份证图片（反面）",
        BusinessModel: "涉及临时灵工的业务模式和场景说明",
        ProjectName: "项目名称",
        TechnicalRequirement: "技术要求",
        BusinessScope: "经营范围",
        RequirementDescription: "需求描述",
        Companytype: "企业类型",
        empSignType: "自由职业者签约类型",
        payType: "付款方式",
        invoiceType: "开票类型",

        customNature: "",
        attFile: "",
        contractType: 0,
        customIndustry: "",
        expectedMonthlyFlow: 0,
        contractTplId: 0,
        invoiceSubject: "004019#004020#",
        shengcode: "",
        shengname: "",
        shicode: "",
        shiname: "",
        AgentId: 1,
        nsrxz: "1",
        checkPhone: "",
        Indate: "2021-03-08T00:00:00",
        CheckStatus: 1,
        InviteCode: "000130",
        IsMana: 0,
        customerManagerId: 44,
        SignatureRate: 50,
        EmpSignatureRate: 0,
        merchantPublicKey: "",
        merchant_number: "YJS000130",
        originalcompanyId: "180",
        IsSendMessageToEmp: 0,
        wmsignuserId: "",
        sealId: "",
      },
    };
  },
};
</script>

<style lang="less" scoped>
.add-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  //   align-items: center;
  margin: 2rem;
  .el-form {
    width: 60%;
  }
  border: 1px solid #aaa;
}
</style>
